import request from "@/utils/request";

/*  订单商品评价列表 */
export function getOrderGoodsEvaluateList(query) {
  return request({
    url: "cms-shop/api/order-goods-evaluate/list",
    method: "get",
    params: query,
  });
}

// 根据id获取订单评价列表
export function getOrderGoodsEvaluateInfo(query) {
  return request({
    url: `cms-shop/api/order-goods-evaluate/${query.id}`,
    method: "get",
  });
}
// 添加订单评价列表
export function addOrderGoodsEvaluate(data) {
  return request({
    url: "/cms-shop/api/order-goods-evaluate",
    method: "post",
    data: data,
  });
}
// 修改订单评价列表
export function editOrderGoodsEvaluate(data) {
  return request({
    url: "/cms-shop/api/order-goods-evaluate",
    method: "put",
    data: data,
  });
}
// 导出订单评价列表
export function exportOrderGoodsEvaluate(query) {
  return request({
    url: `/cms-shop/api/order-goods-evaluate/export`,
    method: "get",
    params: query,
  });
}

// 订单评价列表删除
export function delOrderGoodsEvaluateType(data) {
  return request({
    url: `/cms-shop/api/order-goods-evaluate/${data.id}`,
    method: "delete",
  });
}
